﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CrystalDecisions.CrystalReports.Engine;
using System.Windows.Forms;

namespace MAT.Controllers
{
    class ctrReportMoveAsset
    {
        private frmMoveAssetReport _frmMoveAssetReport = null;

        public frmMoveAssetReport FrmMoveAssetReport
        {
            get { return _frmMoveAssetReport; }
            set { _frmMoveAssetReport = value; }
        }
        public void frmMoveAssetReport_Load()
        {
            ReportDocument report = new ReportDocument();
            report.Load(Application.StartupPath + @"\..\..\Reports\crpReportAssetMoving.rpt");
            _frmMoveAssetReport.crystalReportViewer1.ReportSource = report;
            _frmMoveAssetReport.crystalReportViewer1.Refresh();
        }
        public void btnClose_Click()
        {
            _frmMoveAssetReport.Close();
        }
    }
}
